import request from '@/utils/request'

// 查询相亲工具箱列表
export function listGjx(query) {
  return request({
    url: '/com/gjx/list',
    method: 'get',
    params: query
  })
}

// 查询相亲工具箱详细
export function getGjx(id) {
  return request({
    url: '/com/gjx/' + id,
    method: 'get'
  })
}

// 新增相亲工具箱
export function addGjx(data) {
  return request({
    url: '/com/gjx',
    method: 'post',
    data: data
  })
}

// 修改相亲工具箱
export function updateGjx(data) {
  return request({
    url: '/com/gjx',
    method: 'put',
    data: data
  })
}

// 删除相亲工具箱
export function delGjx(id) {
  return request({
    url: '/com/gjx/' + id,
    method: 'delete'
  })
}

// 导出相亲工具箱
export function exportGjx(query) {
  return request({
    url: '/com/gjx/export',
    method: 'get',
    params: query
  })
}
